package com.zj.mq.demo.common;

public class Result {
    String code;
    String msg;
    Object content;


    public static Result success(Object o){
        Result result = new Result();
        result.setCode("200");
        result.setContent(o);
        result.setMsg("成功");
        return result;
    }

    public static Result success(){
        return success(null);
    }



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }
}
